namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0077 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysTaskHistory", "CurrentApproverEmpId", c => c.Int(nullable: false, defaultValue:1));
            AddForeignKey("dbo.SysTaskHistory", "CurrentApproverEmpId", "dbo.hrm_ps_employees", "emp_seq", cascadeDelete: true);
            CreateIndex("dbo.SysTaskHistory", "CurrentApproverEmpId");
            DropColumn("dbo.SysTaskHistory", "CurrentApproverEmpIds");
        }
        
        public override void Down()
        {
            AddColumn("dbo.SysTaskHistory", "CurrentApproverEmpIds", c => c.String());
            DropIndex("dbo.SysTaskHistory", new[] { "CurrentApproverEmpId" });
            DropForeignKey("dbo.SysTaskHistory", "CurrentApproverEmpId", "dbo.hrm_ps_employees");
            DropColumn("dbo.SysTaskHistory", "CurrentApproverEmpId");
        }
    }
}
